package messages;

public class GetHistoryMessage extends Message {

	private String username;
	
	public GetHistoryMessage()
	{
		super("GetHistory");
		this.username = "";
	}
	
	public GetHistoryMessage(String type, String username)
	{
		super("GetHistory");
		this.username = username;
	}
	
	public void setUsername(String username)
	{
		this.username = username;
	}
	
	public String getUsername()
	{
		return this.username;
	}
	
	public String toXML()
	{
		String message = "<message>";
        message += "<type>GetHistory</type>";
        message += "<username>" + username + "</username>";
        message += "</message>";
        
        return message;
	}
}
